package fi.foyt.cs.persistence.domainmodel.task;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

import com.google.appengine.api.datastore.Key;

@Entity
public class TaskRewardItem {

  public Key getId() {
    return id;
  }
  
  public Integer getCount() {
    return count;
  }
  
  public void setCount(Integer count) {
    this.count = count;
  }
  
  public Long getTaskRewardsId() {
    return taskRewardsId;
  }
  
  public void setTaskRewardsId(Long taskRewardsId) {
    this.taskRewardsId = taskRewardsId;
  }
  
  public Long getItemId() {
    return itemId;
  }
  
  public void setItemId(Long itemId) {
    this.itemId = itemId;
  }
  
  @Id
  @GeneratedValue(strategy = GenerationType.IDENTITY)
  private Key id;
  
  @Column (nullable = false)
  private Integer count;

  @Column (nullable = false)
  private Long taskRewardsId;

  @Column (nullable = false)
  private Long itemId;
}
